package com.book.modules.core.log.dto;

import com.book.modules.core.log.entity.LogInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Objects;

/**
 * Description：操作日志 EntityDto
 * @Author： leo.xiong
 * @CreateDate： 2020-04-14
 * @Email： leo.xiong@suyun360.com
 * @Version:
 */
@Data
@ApiModel(value = "LogInfoDto", discriminator = "操作日志Dto", subTypes = {LogInfoDto.class})
public class LogInfoDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "操作用户")
    private String username;

    @ApiModelProperty(value = "操作内容")
    private String operation;

    @ApiModelProperty(value = "耗时")
    private Long useTime;

    @ApiModelProperty(value = "操作方法")
    private String method;

    @ApiModelProperty(value = "方法参数")
    private String params;

    @ApiModelProperty(value = "操作者IP")
    private String ip;

    @ApiModelProperty(value = "操作地点")
    private String location;
}
